{* $Id: 20110317 *}
{if $pv.json eq 1}{$pv.data_json}{else}
{include file="default/admin/inc_navmenu.tpl"}
<div id="tk-{$action}-{$req.get.act}" class="tk-admin-act">
        {if $req.get.act eq 'additem'}
    	{include file="default/admin/inc_formmain.tpl"}
    {/if}
    {if $req.get.act eq 'manitem'}
	    {if is_array($pv.search)}
	    	{include file="default/admin/inc_formsearch.tpl"}
	    {/if}
	<div id="pager_here" class="clear span-19 last m-b-10">
    </div>
    <table cellpadding="0" cellspacing="0" class="clear ba-solid bc-ccc mf-a" id="tk-{$action}-datatable">
        <tr bgcolor="#cae5FF">
            <th class="width-100 border">
                {$lang.$action.date}
            </th>
            <th class="width-50 center border">
                {$lang.$action.visits}
            </th>			
            <th class="">
                {$lang.$action.pagePath}
            </th>
        </tr>
        {foreach $pv.data.list as $item}
        <tr class="elements" bgcolor="{cycle values="#eeeeee,#dcdcdc"}">
            <td class="width-100 border">
                {$item.date}
            </td>
            <td class="width-50 border center">
                {$item.visits}
            </td>
            <td class="">
                {$item.pagePath}
            </td>
        </tr> {/foreach}
    </table>
</div><!-- edit part -->
{assign var=actionfile value="templates/default/admintmpl/`$action`.tpl"}
{if is_file($actionfile)}
{include file="$actionfile"}
{/if}

<div id="tk-{$action}-edititem" class="tk-admin-act hide">
	{include file="default/admin/inc_formmain.tpl"}
</div>
{/if}{* manitem *}
{/if}